#include <cstdio>
#include <cstdlib>

int compare(const int *a, const int *b){
    return *a - *b;
}

int main(int argc, char *argv[]){
    int a[10] = {1,5,84,4,235,7};

    qsort(a, 10, sizeof(int), (int (*)(const void *, const void *))compare);

    for(int i : a){
        printf("%d ", i);
    }

    return 0;
}
